<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/main-tools.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main-tools_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">includes/main-tools.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="graph_8h_source.html">graph.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for main-tools.h:</div>
<div class="dyncontent">
<div class="center"><img src="main-tools_8h__incl.png" border="0" usemap="#includes_2main-tools_8h" alt=""/></div>
<map name="includes_2main-tools_8h" id="includes_2main-tools_8h">
<area shape="rect" id="node7" href="graph_8h.html" title="graph.h" alt="" coords="175,83,239,112"/><area shape="rect" id="node13" href="edgeID_8h.html" title="edgeID.h" alt="" coords="244,160,319,189"/><area shape="rect" id="node18" href="edgeGraph_8h.html" title="edgeGraph.h" alt="" coords="73,160,169,189"/></map>
</div>
</div>
<p><a href="main-tools_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main-tools_8h.html#affcad6f9c0a99db6cc7adb50a5bcdac7">checkMalloc</a> (void *p, const char *description)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main-tools_8h.html#a83c832496374390c11c825cfb9500c87">randomize</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main-tools_8h.html#a6d19fcfe2ae958749ab0f4590cb73070">randomPermutation</a> (int K)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main-tools_8h.html#a7167f5c196fc5e167bfabde1a730e81d">pause</a> ()</td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="affcad6f9c0a99db6cc7adb50a5bcdac7"></a><!-- doxytag: member="main&#45;tools.h::checkMalloc" ref="affcad6f9c0a99db6cc7adb50a5bcdac7" args="(void *p, const char *description)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="main-tools_8h.html#affcad6f9c0a99db6cc7adb50a5bcdac7">checkMalloc</a> </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Controlla l'allocazione di un nuovo puntatore. </p>

</div>
</div>
<a class="anchor" id="a7167f5c196fc5e167bfabde1a730e81d"></a><!-- doxytag: member="main&#45;tools.h::pause" ref="a7167f5c196fc5e167bfabde1a730e81d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="main-tools_8h.html#a7167f5c196fc5e167bfabde1a730e81d">pause</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>aspetta l'invio dell'utente prima di continuare l'esecuzione del programma </p>

</div>
</div>
<a class="anchor" id="a83c832496374390c11c825cfb9500c87"></a><!-- doxytag: member="main&#45;tools.h::randomize" ref="a83c832496374390c11c825cfb9500c87" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="main-tools_8h.html#a83c832496374390c11c825cfb9500c87">randomize</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>sceglie un seme dei random nella maniera più casuale possibile. Non importa quante volte questa funzione viene richiamata, il seme viene scelto solo la prima volta </p>

</div>
</div>
<a class="anchor" id="a6d19fcfe2ae958749ab0f4590cb73070"></a><!-- doxytag: member="main&#45;tools.h::randomPermutation" ref="a6d19fcfe2ae958749ab0f4590cb73070" args="(int K)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int* <a class="el" href="main-tools_8h.html#a6d19fcfe2ae958749ab0f4590cb73070">randomPermutation</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>K</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Dato un numero ushort K genera una permutazione dei numeri da 0 a K-1. Ogni iterazione sui veicoli può quindi non scorrere in senso ordinato da 0 a K-1 ma procedere casualmente, nell'intenzione dei progettisti questo livella il gap tra chi ha potuto acceder prima alla mossa corrente. </p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main-tools_8h.html">main-tools.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:57 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
